package multigest.vocappulary;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RelativeLayout;

public class MainMenuActivity extends Activity implements OnClickListener {

	private Button btn_lernen;
	private Button btn_hinzufuegen;
	
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        btn_lernen = (Button)findViewById(R.id.btn_lernen);
        btn_lernen.setOnClickListener(this);
        
        btn_hinzufuegen = (Button)findViewById(R.id.btn_hinzufuegen);
        btn_hinzufuegen.setOnClickListener(this);
    }
    
	@Override
	public void onClick(View view) {

		if(view.getId() == R.id.btn_lernen){
	    	startActivity(new Intent(getApplicationContext(), ModiMenuActivity.class));
		}
		
	}
    
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    
}
